<template>
  <div class="m-header">
    <div class="menu">
      <i class="icons icons-menu"></i>
    </div>
    <a href="" class="text">
      <i class="icons icons-github-fill"></i>
      <span> CHRIS-MUSIC</span>
    </a>
    <div class="search" @click="selectItem">
      <i class="icons icons-search"></i>
    </div>
  </div>
</template>

<script type="text/ecmascript-6">
  export default {
    methods:{
      selectItem () {
        this.$router.push({
          path: `/recommend/search`
        })
      }
    }
  }
</script>

<style scoped lang="stylus" rel="stylesheet/stylus">
  @import "~common/stylus/variable"
  @import "~common/stylus/mixin"

  .m-header
    position: relative
    height: 44px
    text-align: center
    color: $color-theme
    font-size: 0
    background-color: $color-sub-theme
    .icon,.icons
      vertical-align: top
      margin-top: 6px
      width: 30px
      height: 32px
      background-size: 30px 32px
    .text
      display: inline-block
      vertical-align: top
      line-height: 44px
      font-size: $font-size-large
      color $color-text
    .search
      position: absolute
      top: 6px
      right: 3px
      .icons-search
        display: block
        padding: 6px 2px;
        font-size: 20px
        color: $color-theme
    .menu
      position: absolute
      top: 0
      left: 0
      .icons-menu
        display: block
        padding: 12px
        font-size: 20px
        color: $color-theme
</style>
